PAINT

Syntax: PAINT x, y, col, bufadr, buflen
Location: HCO

The command PAINT fills a closed figure with the colour col (which must be in the range 0..4, see SET).

The command requires a buffer (min. 4K) whose start address is passed to PAINT as bufadr and whose length as buflen (which must be a minimum of 4096 bytes).

Example:
PAINT 50,50,4,131072,32768 

WARNING:
PAINT will crash the machine if it runs out of the screen, so you have to ensure that the figure to be filled is closed.

CROSS-REFERENCE:
FILL, SET, LDRAW
